//creates the silverlight control within the tag specified by controlHostId

function createSilverlight( controlHost )
{
	Silverlight.createObjectEx({
	    source: "JonThomas.SpaceBounce.xap",
		parentElement: controlHost,
		id: "silverlightControl",
		properties: {
			width: "800",
			height: "600",
			version: "2.0.31005.0", 
			background: "black",
			isWindowless: "true",
			enableHtmlAccess: "true"
		},
		events: {}
	});
}